* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Kanit', sans-serif;
  overflow-x: hidden
}

/* Fade-in effect */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  /* เริ่มจากตำแหน่งที่ต่ำกว่าปกติ */
  transition: opacity 1s ease-out, transform 1s ease-out;
  /* ปรับความเร็วของการเลื่อนและความโปร่งใส */
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
  /* เลื่อนกลับมาตำแหน่งปกติ */
}

/* หน้าแรก: แอนิเมชันทำงานเมื่อโหลดหน้า */
.fade-in-on-load {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}

.fade-in-on-load.visible {
  opacity: 1;
  transform: translateY(0);
}

/* แอนิเมชันสำหรับคอนเทนต์แรก */
.content1-fade-in {
  opacity: 0;
  transform: translateX(-100px); /* เปลี่ยนจาก translateY เป็น translateX เพื่อเลื่อนจากทางซ้าย */
  transition: opacity 1.5s ease-out, transform 1.5s ease-out;
}

.content1-fade-in.visible {
  opacity: 1;
  transform: translateX(0); /* กลับมาตรงกลาง */
}

/* แอนิเมชันสำหรับคอนเทนต์ที่สอง */
.content2-fade-in {
  opacity: 0;
  transform: translateX(-100px); /* เลื่อนจากทางซ้าย */
  transition: opacity 1.5s ease-out, transform 1.5s ease-out;
}

.content2-fade-in.visible {
  opacity: 1;
  transform: translateX(0); /* กลับมาตรงกลาง */
}

/* ปุ่มแยกออกมาอยู่นอกคอนเทนต์ พร้อมกับแอนิเมชัน */
.fade-in1 {
  opacity: 0;
  transform: translateX(-100px); /* เลื่อนเข้าจากทางซ้าย */
  transition: opacity 1.5s ease-out, transform 1.5s ease-out;
}

.fade-in1.visible {
  opacity: 1;
  transform: translateX(0); /* กลับมาตรงกลาง */
}

#toggle-link img {
  filter: brightness(0) invert(1); /* เปลี่ยนสีของรูปภาพเป็นสีขาว */
}




.container {
  max-width: 1140px;
  margin: 0 auto;
  padding-top: 0.5rem; /* เพิ่ม padding เพื่อเว้นช่องสำหรับ nav */
}

nav {
  padding: 1rem 2rem;
  background-color: rgba(0, 0, 0, 0.6); /* สีดำที่มีความโปร่งใส 50% */
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  border-radius: 80px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.nav-con {
  display: flex;
  align-items: center;
  padding-right: 0px; /* ลดให้ไม่มี padding ซ้ายเลย */
  margin-left: 0px; /* เพิ่ม margin-left แทนหากต้องการ */
}


.logo {
  margin-right: 2rem; /* ลดระยะห่างโลโก้ */
}

.menu {
  display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 30px; /* ระยะห่างระหว่างแต่ละเมนูและไอคอน */
}

.menu li {
  display: flex;
  align-items: center;
}

.menu li a {
  display: flex;
    align-items: center;
    color: white;
    text-decoration: none;
    font-size: 16px;
}

.menu li a img {
  width: 24px; /* ปรับขนาดไอคอนตามที่ต้องการ */
  margin-right: 5px; /* ระยะห่างระหว่างไอคอนกับข้อความ */
}


.hero02 {
  position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    text-align: left;
    padding-left: 190px;

}

.background-video2 {
  position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* หรือคุณสามารถลองใช้ contain หากไม่ต้องการครอบตัด */
    z-index: -1;
}

.hero02-con {
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* จัดให้อยู่ตรงกลาง */

}

.hero02-info {
  width: 100%;
  padding: 2rem;
  color: #fff;
}

.hero02-info h1 {
  font-size: 3rem;
  font-weight: 400;
  color: #DF00B1;
}

.hero02-info h3 {
  font-size: 2rem;
}


.hero02-info p {
  margin: 1rem 0;
  text-align: justify;
  width: 380px;
}

.hero02-info .hero02-btn {
  display: inline-block;
  background-color: #DF00B1;
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 18px;
  text-decoration: none;
}

.hero-btn {
  display: inline-block;
  background-color: #DF00B1;
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 18px;
  text-decoration: none;
}

.hero2-content {
  display: flex;
  flex-direction: column;
  align-items: center; /* จัดให้อยู่ตรงกลาง */
  text-align: center;
}

.hero2-btn-wrapper {
  margin-top: 0px; /* ระยะห่างระหว่างเนื้อหาและปุ่ม */
  position: relative; /* ใช้ relative เพื่อให้คงตำแหน่ง */
  text-align: center;
  padding-left: 22px;
}


/*คอนเท้นที่ 2 20วิ */
.hero-info2 {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 2rem;
  color: #fff;
}

.hero-info2 h1 {
  font-family: 'Kanit', sans-serif;
  font-size: 3rem !important;
  /* ขนาดตัวอักษรใหญ่ขึ้น */
  font-weight: 400 !important;
  /* ปรับน้ำหนักให้บาง */
  color: #DF00B1;
  line-height: 1; /* ค่าที่สูงกว่านี้จะเพิ่มระยะห่างระหว่างบรรทัด */
}

.hero-info2 h3 {
  font-family: 'Kanit', sans-serif;
  font-size: 2.5rem !important;
  /* ขนาดตัวอักษรใหญ่ขึ้น */
  font-weight: 500 !important;
  /* ปรับน้ำหนักให้บาง */
  color: #ffffff;
  line-height: 1;
  /* เพิ่มระยะห่างระหว่างบรรทัด */
}

.hero-info2 p {
  font-family: 'Kanit', sans-serif;
  font-size: 1rem !important;
  /* ขนาดตัวอักษรใหญ่ขึ้น */
  font-weight: 300 !important;
  /* ปรับน้ำหนักให้บาง */
  color: #ffffff;
  width: 500px;
}

.hero-info2 .hero02-btn {
  display: inline-block;
  background-color: #DF00B1;
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 18px;
  text-decoration: none;
}

.hero02-btn {
  display: inline-block;
  background-color: #DF00B1;
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 18px;
  text-decoration: none;
}


/* Popup */
.popup {
  color: #fff;
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
}

.popup-content {
  background-color: #000;
  margin: 0 auto;
  padding: 40px;
  border-radius: 15px;
  /* เพิ่มความโค้งให้กรอบ */
  width: 80%;
  max-width: 600px;
  text-align: center;
}

.popup-content button {
  background-color: #DF00B1;
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  width: 100%;
  /* ให้ปุ่มกินพื้นที่ container */
  max-width: 300px;
  /* ขนาดสูงสุดของปุ่ม */
  margin-bottom: 15px;
}

.popup-content textarea {
  width: 100%;
  /* ให้ textarea กินพื้นที่เต็ม */
  height: 40px;
  /* กำหนดความสูงให้เหมือนกับ input */
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 25px;
  /* เพิ่มความโค้งให้เหมือนกับ input */
  box-sizing: border-box;
  resize: none;
  /* ปิดการยืดหดของ textarea */
  font-size: 16px;
  /* ปรับขนาดตัวอักษร */
  background-color: #f9f9f9;
  /* สีพื้นหลังเหมือนกับ input */
  color: #333;
  /* สีตัวอักษรเหมือนกับ input */
  overflow: hidden;
  /* ปิดการแสดง scroll bar */
}

.popup-content h2 {
  font-weight:400; /* หรือ 400 ขึ้นไป */
}


.service-label {
  display: block;
  font-weight: regular;
  margin-bottom: 10px; /* เพิ่มช่องว่างระหว่าง label กับ checkbox */
  font-size: 18px;
  color: #fff; /* หรือสีอื่นที่คุณต้องการ */
  padding-left: 10px;
  padding-bottom: 10px;
}

.form-group {
  display: flex;
  flex-direction: column; /* จัดวางเนื้อหาภายใน form-group ให้เป็นแนวตั้ง */
  align-items: flex-start; /* จัดข้อความและ checkbox ให้อยู่ซ้าย */
}

.form-group .form-field {
  flex: 0 0 48%;
  /* กำหนดให้แต่ละฟอร์มกินพื้นที่ 48% เพื่อให้มีระยะห่างระหว่างฟอร์ม */
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: regular;
  font-family: 'Kanit', sans-serif;
  font-size: 14px;
  color: #8E8B8B;
}

.form-group2 label {
  display: block;
  margin-bottom: 5px;
  font-weight: regular;
  color: #fff;
  font-family: 'Kanit', sans-serif;
  font-size: 14px;
  text-align: left; 
  line-height: 1.5;
}

.form-group input,
.form-group textarea,
/* สไตล์ทั่วไปสำหรับทุก dropdown */
.form-group select {
  width: 100%;
  padding: 10px;
  border-radius: 25px;
  border: 1px solid #ccc;
  box-sizing: border-box;
  font-family: 'Kanit', sans-serif;
  appearance: none;
  background-color: white;
  color: #8E8B8B;
}

/* สไตล์เฉพาะสำหรับ dropdown ที่มีลูกศร */
.dropdown-with-arrow {
  padding-right: 40px; /* เพิ่มพื้นที่ด้านขวาให้ลูกศร */
  background: url('Chevron\ down.png') no-repeat right 10px center;
  background-size: 15px; /* ขนาดลูกศร */
}

.popup-content button {
  background-color: #DF00B1;
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  width: 100%;
  /* ทำให้ปุ่มกว้างเท่ากับ container */
  max-width: 300px;
  /* กำหนดขนาดสูงสุด */
  margin-bottom: 15px;
  /* เพิ่มช่องว่างระหว่างปุ่ม */
}

.form-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  /* เพิ่มช่องว่างระหว่างฟอร์ม */
  margin-bottom: 20px;
}

.form-group {
  flex: 1;
  margin-right: 10px;
}

.form-group:last-child {
  margin-right: 0;
}

input[type="checkbox"] {
  display: none;
  /* ซ่อน checkbox เดิม */
}

input[type="checkbox"]+label img {
  cursor: pointer;
  /* ให้มี cursor แบบ pointer เมื่อ hover */
}

input[type="checkbox"]:checked+label img {
  border: 2px solid #DF00B1;
  /* ใส่กรอบให้กับรูปที่เลือก */
}



.checkbox-group {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}

.checkbox-group label {
  margin-left: 10px; /* เพิ่มช่องว่างระหว่าง checkbox กับ label */
  white-space: nowrap; /* บังคับให้ข้อความอยู่ในบรรทัดเดียว */
}

.custom-checkbox {
  display: none; /* ซ่อน checkbox ดั้งเดิม */
}

.checkbox-icon {
  width: 20px;
  height: 20px;
  margin-right: 10px;
  cursor: pointer;
}

.checkbox-container {
  display: flex;
  flex-wrap: wrap; /* ให้ checkbox ที่เหลือขยับขึ้นมาข้างกันถ้ามีที่ว่าง */
  gap: 30px; /* ช่องว่างระหว่างคอลัมน์ */
}

.checkbox-column {
  display: flex;
  flex-direction: column;
  width: 45%; /* กำหนดความกว้างให้ checkbox แต่ละกลุ่ม */
}

.custom-checkbox:checked + label .checkbox-icon {
  content: url('Checkbox1.png'); /* แสดงรูปภาพ "ถูก" เมื่อ checkbox ถูกเลือก */
}


button.close-btn:first-of-type {
  width: 100%; /* ให้ปุ่มยาวเต็มความกว้าง */
  padding: 8px 0;
  background-color: #DF00B1; /* สีพื้นหลัง */
  color: #fff; /* สีตัวอักษร */
  border: none; /* เอากรอบออก */
  border-radius: 25px; /* เพิ่มความโค้ง */
  margin-top: 10px;
  font-size: 1.2rem;
  cursor: pointer;
  max-width: 500px; /* เพิ่มความยาวของปุ่ม */
  font-family: 'Kanit', sans-serif;
}

button#closePopupBtn2 {
  background-color: transparent; /* ทำให้พื้นหลังโปร่งใส */
  color: #ffffff; /* สีตัวอักษร */
  font-size: 1rem;
  border: none; /* เอากรอบออก */
  cursor: pointer;
  margin-bottom: 10px;
  font-family: 'Kanit', sans-serif;
}






/** หน้า2 คอนเท้น 1 */
.page2-section {
  text-align: center;
  padding: 20px;
  background-color: #000;
}

.service-heading {
  padding-top: 30px;
  text-align: center;
  margin-bottom: 30px;
}

.service-heading a {
  text-decoration: none; /* เอาเส้นใต้ของลิงก์ออก */
}

.service-heading p {
  font-size: 16px;
  font-weight: Normal;
  color: #fff;
  margin-bottom: 20px;
}

.service-heading h2 {
  font-size: 36px;
  font-weight: bold;
  color: #fff;
  margin-bottom: 20px;
}

.page2-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
}

.page2-image video {
  max-width: 100%;
  border-radius: 10px;
}

.page2-text {
  max-width: 400px;
  text-align: left;
  color: #fff;
}

.page2-text h3 {
  font-size: 28px;
  color: #fff;
  margin-bottom: 15px;
}

.page2-text p {
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 20px;
  text-align: left;
  width: 380px;
}

.page2-button {
  color: #DF00B1;
  text-decoration: none;
  /* เอาเส้นใต้ออก */
  display: block;
  /* ทำให้ลิงก์แสดงเป็นบล็อก */
  text-align: left;
  /* จัดข้อความชิดซ้าย */
  margin: 0;
  /* กำหนด margin ให้เป็น 0 เพื่อไม่ให้มีการเว้นระยะ */
  padding: 0;
  /* กำหนด padding ให้เป็น 0 เพื่อให้ลิงก์ชิดซ้ายที่สุด */
}


/** หน้า2 คอนเท้น 2 */
.page2-1-section {
  text-align: center;
  padding: 20px;
  background-color: #000;
}

.service-1-heading {
  text-align: center;
  margin-bottom: 30px;
}

.service-1-heading h2 {
  font-size: 28px;
  font-weight: bold;
  color: #fff;
  margin-bottom: 20px;
}

.page2-1-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  flex-direction: row-reverse;
  /* สลับตำแหน่งวิดีโอให้อยู่ด้านขวา */
}

.page2-1-image video {
  max-width: 100%;
  border-radius: 10px;
}

.page2-1-text {
  max-width: 400px;
  text-align: left;
  color: #fff;
}

.page2-1-text h3 {
  font-size: 28px;
  color: #fff;
  margin-bottom: 15px;
}

.page2-1-text p {
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 20px;
  text-align: left;
}


/** หน้า2 คอนเท้น 3 */
.page2-3-section {
  text-align: center;
  padding: 20px;
  background-color: #000;
}

.service-3-heading {
  text-align: center;
  margin-bottom: 30px;
}

.service-3-heading h2 {
  font-size: 28px;
  font-weight: bold;
  color: #fff;
  margin-bottom: 20px;
}

.page2-3-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
}

.page2-3-image video {
  max-width: 100%;
  border-radius: 10px;
}

.page2-3-text {
  max-width: 400px;
  text-align: left;
  color: #fff;
}

.page2-3-text h3 {
  font-size: 28px;
  color: #fff;
  margin-bottom: 15px;
}

.page2-3-text p {
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 20px;
  text-align: left;
}



/** หน้า2 คอนเท้น 4 */
.page2-4-section {
  text-align: center;
  padding: 20px;
  background-color: #000;
}

.service-4-heading {
  text-align: center;
  margin-bottom: 30px;
}

.service-4-heading h2 {
  font-size: 28px;
  font-weight: bold;
  color: #fff;
  margin-bottom: 20px;
}

.page2-4-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  flex-direction: row-reverse;
  /* ให้ข้อความอยู่ทางซ้ายและรูปภาพอยู่ทางขวา */
}

.page2-4-image video {
  max-width: 100%;
  border-radius: 10px;
}

.page2-4-text {
  max-width: 400px;
  text-align: left;
  color: #fff;
}

.page2-4-text h3 {
  font-size: 28px;
  color: #fff;
  margin-bottom: 15px;
}

.page2-4-text p {
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 20px;
  text-align: left;
}



/** หน้า2 คอนเท้น 6 */
.page2-5-section {
  text-align: center;
  padding: 20px;
  background-color: #000;
}

.service-5-heading {
  text-align: center;
  margin-bottom: 30px;
}

.service-5-heading h2 {
  font-size: 28px;
  font-weight: bold;
  color: #fff;
  margin-bottom: 20px;
}

.page2-5-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
}

.page2-5-image video {
  
  max-width: 100%;
  border-radius: 10px;
}

.page2-5-text {
  max-width: 400px;
  text-align: left;
  color: #fff;
}

.page2-5-text h3 {
  font-size: 28px;
  color: #fff;
  margin-bottom: 15px;
}

.page2-5-text p {
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 20px;
  text-align: left;
}


/** หน้า2 คอนเท้น 6 */
.page2-6-section {
  text-align: center;
  padding: 20px;
  background-color: #000;
}

.service2-6-heading {
  text-align: center;
  margin-bottom: 30px;
}

.service2-6-heading a {
  text-decoration: none; /* เอาเส้นใต้ของลิงก์ออก */
}

.service2-6-heading p {
  font-size: 16px;
  font-weight: Normal;
  color: #fff;
  margin-bottom: 20px;
}

.service2-6-heading h2 {
  font-size: 36px;
  font-weight: bold;
  color: #fff;
  margin-bottom: 20px;
}

.page2-6-container {
  padding-top: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
}

.page2-6-image video {
  
  max-width: 100%;
  border-radius: 10px;
}

.page2-6-text {
  max-width: 400px;
  text-align: left;
  color: #fff;
}

.page2-6-text h3 {
  font-size: 28px;
  color: #fff;
  margin-bottom: 15px;
}

.page2-6-text p {
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 20px;
  text-align: left;
}




/** หน้า2 คอนเท้น 7 */
.page2-7-section {
  text-align: center;
  padding: 20px;
  background-color: #000;
}

.service2-7-heading {
  text-align: center;
  margin-bottom: 30px;
}

.service2-7-heading p {
  font-size: 16px;
  font-weight: Normal;
  color: #fff;
  margin-bottom: 20px;
}

.service2-7-heading h2 {
  font-size: 28px;
  font-weight: bold;
  color: #fff;
  margin-bottom: 20px;
}

.page2-7-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  flex-direction: row-reverse;
  /* สลับตำแหน่งวิดีโอให้อยู่ด้านขวา */
}

.page2-7-image video {
  max-width: 100%;
  border-radius: 10px;
}

.page2-7-text {
  max-width: 400px;
  text-align: left;
  color: #fff;
}

.page2-7-text h3 {
  font-size: 28px;
  color: #fff;
  margin-bottom: 15px;
}

.page2-7-text p {
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 20px;
  text-align: left;
}


/** หน้า2 คอนเท้น 8 */
.page2-8-section {
  text-align: center;
  padding: 20px;
  background-color: #000;
}

.service2-8-heading {
  text-align: center;
  margin-bottom: 30px;
}

.service2-8-heading p {
  font-size: 16px;
  font-weight: Normal;
  color: #fff;
  margin-bottom: 20px;
}

.service2-8-heading h2 {
  font-size: 28px;
  font-weight: bold;
  color: #fff;
  margin-bottom: 20px;
}

.page2-8-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
}

.page2-8-image video {
  max-width: 100%;
  border-radius: 10px;
}

.page2-8-text {
  max-width: 400px;
  text-align: left;
  color: #fff;
}

.page2-8-text h3 {
  font-size: 28px;
  color: #fff;
  margin-bottom: 15px;
}

.page2-8-text p {
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 20px;
  text-align: left;
}

/** footer */
.footer {
  background-color: #000;
  /* พื้นหลังสีดำ */
  padding: 80px 20px;
  color: #fff;
  /* สีตัวอักษรเป็นสีขาว */
}

.footer-container {
  display: flex;
  justify-content: flex-start;
  /* กระจายคอลัมน์ให้ห่างกัน */
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
  /* ทำให้ตอบสนองต่อหน้าจอขนาดเล็กได้ */
}

.footer .map-container,
.footer .mail-container {
  display: flex;
  align-items: center;
  margin-bottom: 10px; /* เพิ่มระยะห่างเล็กน้อยระหว่างบรรทัด */
}

.footer .map-container img,
.footer .mail-container img {
  margin-right: 10px; /* เพิ่มระยะห่างระหว่างไอคอนกับข้อความ */
  width: 20px; /* ขนาดของไอคอน */
  height: auto;
}

.footer .mail-container a,
.footer .map-container p {
  margin: 0;
  font-size: 14px;
  color: #fff;
  text-decoration: none;
}

.footer .mail-container a:hover {
  text-decoration: underline;
}

.footer .social-icons a {
  margin-right: 15px; /* เพิ่มระยะห่างเท่ากันระหว่างแต่ละไอคอน */
  display: inline-block; /* ทำให้ไอคอนเรียงตามแนวนอน */
}

.footer .social-icons img {
  width: 24px;
  height: 24px;
  object-fit: cover; /* เพื่อให้ภาพไอคอนเต็มพื้นที่โดยไม่เสียอัตราส่วน */
}

.footer-column1 {
  flex: 1;
  margin: 0 20px;
  min-width: 200px;
  /* กำหนดขนาดขั้นต่ำของคอลัมน์ */
  text-align: left;
  text-decoration: none; /* ลบเส้นใต้ของข้อความ */
}

.footer-column1 h3 {
  margin-bottom: 20px;
  font-size: 18px;
  font-weight: bold;
}

.footer-column1 p {
  text-align: left;
}
.footer-column1 ul {
  margin-bottom: 20px;
  font-size: 14px;
  list-style-type: none;
}

.footer-column1 a {
  color: #fff;
  text-decoration: none;
}

.footer-column1 a:hover {
  text-decoration: underline;
}



.footer-column2 {
  flex: 1;
  margin: 0 20px;
  min-width: 200px;
  /* กำหนดขนาดขั้นต่ำของคอลัมน์ */
  padding-left: 150px;
}

.footer-column2 h3 {
  margin-bottom: 20px;
  font-size: 18px;
  font-weight: bold;
}

.footer-column2 p,
.footer-column2 ul {
  margin-bottom: 20px;
  font-size: 14px;
  list-style-type: none;
}

.footer-column2 a {
  color: #fff;
  text-decoration: none;
}

.footer-column2 a:hover {
  text-decoration: underline;
}



.footer-column3 {
  flex: 1;
  margin: 0 20px;
  min-width: 200px;
  /* กำหนดขนาดขั้นต่ำของคอลัมน์ */
  text-align: left;
}

.footer-column3 h3 {
  margin-bottom: 20px;
  font-size: 18px;
  font-weight: bold;
}

.footer-column3 p,
.footer-column3 ul {
  margin-bottom: 20px;
  font-size: 14px;
  list-style-type: none;
}

.footer-column3 a {
  color: #fff;
  text-decoration: none;
}

.footer-column3 a:hover {
  text-decoration: underline;
}

.cta-btn {
  background-color: #e6007e;
  /* สีปุ่มเป็นสีชมพู */
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 18px;
  cursor: pointer;
  text-transform: uppercase;
  font-family: 'Kanit', sans-serif;
}

.cta-btn:hover {
  background-color: #d4006f;
  /* เปลี่ยนสีเมื่อ hover */
}

.social-icons a {
  color: #fff;
  margin-right: 10px;
  font-size: 20px;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  font-size: 12px;
  color: #fff;
}







/* ซ่อนเมนูสำหรับหน้าจอเล็ก */
@media (max-width: 768px) {

  body {
    overflow-x: hidden; /* ป้องกันการเลื่อนในแนวนอน */
}
/* ปรับขนาดของวิดีโอหรือภาพให้พอดีกับหน้าจอมือถือ */
.hero-img {
    width: 100%;
    margin: 0 auto;
}
.background-video {
    width: 100%;
    height: auto;
}

  html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* ซ่อนส่วนที่เกินออกทางด้านข้างบนหน้าจอโทรศัพท์ */
  }

  nav {
      padding: 1rem 2rem;
      top: 0;
      left: 0;
      background-color: #000;
      width: 100%; /* ให้ครอบคลุมความกว้างของหน้าจอ */
      border-radius: 0;
      z-index: 1000;
      transform: translateX(0); /* เอา translateX ออกเพื่อให้อยู่ชิดขอบซ้าย */
  }

  .nav-con {
      display: flex;
      justify-content: flex-start; /* จัดเนื้อหาไปทางซ้าย */
      align-items: center; /* ให้อยู่ตรงกลางแนวตั้ง */
      padding-left: 1rem; /* เพิ่ม padding เพื่อขยับโลโก้ออกจากขอบซ้าย */
      width: 100%;
  }

  .logo {
      margin-left: 0px;
      /* ขยับโลโก้ให้อยู่ห่างจากขอบซ้าย */
  }

  .menu {
      display: none;
      /* ซ่อนเมนู */
      flex-direction: column;
      background-color: #000;
      position: absolute;
      top: 60px;
      left: 0;
      width: 100%;
      z-index: 1000;
      align-items: self-start;
      line-height: 1.0; /* ปรับให้ใกล้กันมากขึ้น */
      padding-top: 10px;
      padding-bottom: 20px;
  }

  .menu li {
      padding-left: 45px; /* ปรับขนาดตามความต้องการ */
    }

  .menu.active {
      display: flex;
      /* แสดงเมนูเมื่อคลิกไอคอน */
  }


  /* Hamburger icon */
  .hamburger {
      position: absolute;
      right: 20px;
      /* บังคับให้แฮมเบอร์เกอร์อยู่ชิดซ้าย */
      top: 50%;
      /* ปรับให้แฮมเบอร์เกอร์อยู่กึ่งกลางในแนวตั้ง */
      transform: translateY(-50%);
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      height: 25px;
      cursor: pointer;
  }

  .hamburger span {
      display: block;
      width: 30px;
      height: 3px;
      background-color: #fff;
      margin: 4px 0;
      transition: all 0.3s ease-in-out;
  }

  .container {
    width: 100%;
    display: flex;
    flex-direction: column; /* จัดเรียงเนื้อหาให้เป็นแนวตั้ง */
    justify-content: center;
    align-items: center;
  }






  /********************************************************************************/



  /* สำหรับพื้นหลังและเลย์เอาต์หลัก */
.hero02 {
  height: 100vh; /* ให้กินพื้นที่ทั้งหน้าจอ */
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center; /* ให้อยู่ตรงกลางทั้งแนวตั้งและแนวนอน */
    margin: 0;
    padding: 0;
}

.container02 {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center; /* ให้อยู่ตรงกลางทั้งแนวตั้งและแนวนอน */
    padding: 0;
    margin: 0;
}

.hero02-con {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 0 20px; /* ตรวจสอบค่า padding */
  margin: 0; /* ลด margin ถ้ามี */

}

/*****************************content 1*********************************************/

.hero02-info {
  max-width: 600px; /* ให้ข้อความมีความกว้างไม่เกินนี้ */
    margin: 0 auto; /* ให้ข้อความอยู่ตรงกลาง */
    padding: 0 20px; /* เพิ่ม padding ข้างเพื่อให้อ่านง่ายขึ้น */
    text-align: center;
}

.hero02-info h1 {
  font-family: 'Kanit', sans-serif;
  font-size: 48px !important;
  /* ขนาดตัวอักษรใหญ่ขึ้น */
  font-weight: 400 !important;
  /* ปรับน้ำหนักให้บาง */
  color: #DF00B1;
  margin: 0; /* ปรับ margin ให้เหมาะสม */
    padding: 0;
  
}

.hero02-info h3 {
  font-family: 'Kanit', sans-serif;
  font-size: 24px !important;
  /* ขนาดตัวอักษรใหญ่ขึ้น */
  font-weight: 500 !important;
  /* ปรับน้ำหนักให้บาง */
  color: #ffffff;
  line-height: 1.2;
  /* เพิ่มระยะห่างระหว่างบรรทัด */
  margin-bottom: 20px; /* ปรับระยะห่างด้านล่างของ h3 */
    padding: 0;
  
}

.hero02-info p {
  font-family: 'Kanit', sans-serif;
  font-size: 1rem !important;
  /* ขนาดตัวอักษรใหญ่ขึ้น */
  font-weight: 300 !important;
  /* ปรับน้ำหนักให้บาง */
  color: #ffffff;
  text-align: justify;
  margin: 0; /* ปรับ margin ให้เหมาะสม */
  padding: 0;
  width: 100%;
  text-align: center;
  
}

/* Popup */
.popup {
  width: 100%; /* ตั้งค่าให้กว้าง 90% ของหน้าจอ */
  max-width: 100%; /* กำหนดความกว้างสูงสุด */
  max-height: 100%; /* กำหนดความสูงสูงสุด */
  overflow-y: auto; /* เปิดการเลื่อนแนวตั้ง */
  padding: 0px; /* เพิ่ม padding ภายใน */
  margin: 0 auto; /* จัดให้กลาง */
  background-color: #000; /* เพิ่มพื้นหลังให้ popup */
  border-radius: 10px; /* มุมโค้ง */
}

/* ซ่อน scrollbar */
.popup::-webkit-scrollbar {
  display: none; /* ซ่อน scrollbar ใน Webkit-based browsers (Chrome, Safari) */
}

/* Firefox */
.popup {
  scrollbar-width: none; /* ซ่อน scrollbar ใน Firefox */
}

.popup-content {
  background-color: #000;
  margin: 0 auto;
  padding: 40px;
  border-radius: 15px;
  /* เพิ่มความโค้งให้กรอบ */
  width: 100%;
  max-width: 900px;
  text-align: center;
}

.popup-content button {
  background-color: #DF00B1;
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  width: 100%;
  /* ให้ปุ่มกินพื้นที่ container */
  max-width: 300px;
  /* ขนาดสูงสุดของปุ่ม */
  margin-bottom: 15px;
}

.popup-content textarea {
  width: 100%;
  /* ให้ textarea กินพื้นที่เต็ม */
  height: 40px;
  /* กำหนดความสูงให้เหมือนกับ input */
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 25px;
  /* เพิ่มความโค้งให้เหมือนกับ input */
  box-sizing: border-box;
  resize: none;
  /* ปิดการยืดหดของ textarea */
  font-size: 16px;
  /* ปรับขนาดตัวอักษร */
  background-color: #f9f9f9;
  /* สีพื้นหลังเหมือนกับ input */
  color: #333;
  /* สีตัวอักษรเหมือนกับ input */
  overflow: hidden;
  /* ปิดการแสดง scroll bar */
}
.checkbox-container {
  display: flex; /* ใช้ flexbox สำหรับการจัดเรียง */
  flex-direction: column; /* ให้ checkbox เรียงเป็นแนวตั้ง */
  justify-content: space-between; /* กระจายพื้นที่ระหว่างคอลัมน์ */
  width: 100%; /* ให้คอนเทนเนอร์กินพื้นที่เต็ม */
  flex-wrap: wrap; /* ให้ checkbox ที่เหลือขยับขึ้นมาข้างกันถ้ามีที่ว่าง */
  gap: 3px; /* ปรับช่องว่างระหว่างคอลัมน์ให้เล็กลง */
}

.checkbox-group {
  display: flex;
  align-items: center;
  margin-bottom: 2px; /* ลดระยะห่างระหว่าง checkbox */
}

.checkbox-group label {
  margin-left: 5px; /* ลดระยะห่างระหว่าง checkbox กับ label */
  white-space: nowrap; /* ให้ข้อความอยู่ในบรรทัดเดียว */
}

.hero2-btn-wrapper {
  position: relative;
  left: 0%;
  transform: translateX(-50%);
  margin-top: 20px;
  bottom: 40px;
}

/********************************content 2*************************************************/


.service-heading h2 {
  font-size: 36px;
  font-weight: bold;
  color: #fff;
  margin: 0 auto 20px; /* ตั้งค่า margin-top และ bottom พร้อมจัดกึ่งกลางด้วย auto */
  text-align: center;
  width: 90%;
}

.hero-info2 {
  max-width: 600px; /* ให้ข้อความมีความกว้างไม่เกินนี้ */
    margin: 0 auto; /* ให้ข้อความอยู่ตรงกลาง */
    padding: 0 20px; /* เพิ่ม padding ข้างเพื่อให้อ่านง่ายขึ้น */
    text-align: center;
}

.hero-info2 h1 {
  font-family: 'Kanit', sans-serif;
  font-size: 38px !important;
  /* ขนาดตัวอักษรใหญ่ขึ้น */
  font-weight: 400 !important;
  /* ปรับน้ำหนักให้บาง */
  color: #DF00B1;

}

.hero-info2 h3 {
  font-family: 'Kanit', sans-serif;
  font-size: 24px !important;
  /* ขนาดตัวอักษรใหญ่ขึ้น */
  font-weight: 500 !important;
  /* ปรับน้ำหนักให้บาง */
  color: #ffffff;
  line-height: 1.5;
  /* เพิ่มระยะห่างระหว่างบรรทัด */
  
}

.hero-info2 p {
  font-family: 'Kanit', sans-serif;
  font-size: 1rem !important;
  /* ขนาดตัวอักษรใหญ่ขึ้น */
  font-weight: 300 !important;
  /* ปรับน้ำหนักให้บาง */
  color: #ffffff;
  margin: 1rem 0;
  width: 100%;
  text-align: center;
}


/********************************ปุ่ม popup*************************************************/

.hero2-btn-wrapper {
  display: flex;
  justify-content: center;  /* จัดให้อยู่ตรงกลางในแนวนอน */
  align-items: center;  /* จัดให้อยู่ตรงกลางในแนวตั้ง */
  margin-top: 60px; /* เพิ่มช่องว่างด้านบน */
  margin-bottom: 0px; /* เพิ่มช่องว่างด้านล่าง */
  margin-left: 140px;
}

#openPopupBtnFooter {
  text-decoration: none !important;
}


.background-video2, .background-video3, .background-video4 {
  width: 100%;
  height: 100vh;
  min-height: 100vh;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
}

.hero2-con, .hero3-con, .hero4-con {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

/*****************************************content*******************************************/

/** หน้า2 คอนเท้น 1-8 */

.page2-container {
  display: flex;
  flex-direction: column; /* เปลี่ยนเป็นการจัดเรียงแนวตั้ง */
  justify-content: center;
  align-items: center;
  gap: 30px;
}

.page2-text h3 {
  font-size: 28px;
  color: #fff;
  margin-bottom: 15px;
}

.page2-text p {
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 20px;
  text-align: left;
  width: 350px;
}

.page2-1-container {
  display: flex;
  flex-direction: column; /* เปลี่ยนเป็นการจัดเรียงแนวตั้ง */
  justify-content: center;
  align-items: center;
  gap: 30px;
}

.page2-3-container {
  display: flex;
  flex-direction: column; /* เปลี่ยนเป็นการจัดเรียงแนวตั้ง */
  justify-content: center;
  align-items: center;
  gap: 30px;
}

.page2-4-container {
  display: flex;
  flex-direction: column; /* เปลี่ยนเป็นการจัดเรียงแนวตั้ง */
  justify-content: center;
  align-items: center;
  gap: 30px;
}

.page2-5-container {
  display: flex;
  flex-direction: column; /* เปลี่ยนเป็นการจัดเรียงแนวตั้ง */
  justify-content: center;
  align-items: center;
  gap: 30px;
}

.page2-6-container {
  display: flex;
  flex-direction: column; /* เปลี่ยนเป็นการจัดเรียงแนวตั้ง */
  justify-content: center;
  align-items: center;
  gap: 30px;
}

.page2-7-container {
  display: flex;
  flex-direction: column; /* เปลี่ยนเป็นการจัดเรียงแนวตั้ง */
  justify-content: center;
  align-items: center;
  gap: 30px;
}

.page2-8-container {
  display: flex;
  flex-direction: column; /* เปลี่ยนเป็นการจัดเรียงแนวตั้ง */
  justify-content: center;
  align-items: center;
  gap: 30px;
}

.footer-column2 {
  flex: 1;
  margin: 0 20px;
  min-width: 200px;
  /* กำหนดขนาดขั้นต่ำของคอลัมน์ */
  padding-left: 0px;
}

.footer-column2 h3 {
  margin-top: 20px;
  margin-bottom: 20px;
  font-size: 18px;
  font-weight: bold;
}

.footer-column2 p,
.footer-column2 ul {
  margin-bottom: 20px;
  font-size: 14px;
  list-style-type: none;
}

.footer-column2 a {
  color: #fff;
  text-decoration: none;
  line-height: 2; /* ระยะห่างระหว่างบรรทัด */
}

.footer-column2 a:hover {
  text-decoration: underline;
}

}

/* สำหรับ iPad Mini และ iPad ขนาดกลาง (iPad Air, iPad 9th Gen, 10th Gen) */
@media (min-width: 768px) and (max-width: 1023px) {
  body {
      font-family: 'Kanit', sans-serif;
      overflow-x: hidden; /* ป้องกันการเลื่อนในแนวนอน */
  }

  .hamburger span {
      display: block; /* แสดงแถบแฮมเบอร์เกอร์ */
  }
}

/* สำหรับ iPad Pro 11-inch และ 12.9-inch */
@media (min-width: 1024px) and (max-width: 1366px) {

  body {
      font-family: 'Kanit', sans-serif;
      overflow-x: hidden; /* ป้องกันการเลื่อนในแนวนอน */
  }

  .hamburger span {
      display: none; /* ซ่อนแถบแฮมเบอร์เกอร์สำหรับ iPad Pro */
  }

    
  .menu li a {
    font-size: 15px;
}

.menu li a img {
  width: 20px; /* ปรับขนาดไอคอนตามที่ต้องการ */
  margin-right: 3px; /* ระยะห่างระหว่างไอคอนกับข้อความ */
}

}
